#include <iostream>
using namespace std;
int main(){
    float f1=3.14f;
    cout<<"f1="<<f1<<endl;
    double d1=3.14;
    cout<<"d1="<<d1<<endl;
    cout<<"float占"<<sizeof(float)<<"字节"<<endl;
    cout<<"double占"<<sizeof(double)<<"字节"<<endl;
    return 0;
}